package com.java.al.file;

import java.io.*;


public class GetFileCreatTime {
	public static void main(String[] args) {
		String file = "FileMain.java";
		try {
			Process process = Runtime.getRuntime().exec("cmd   /c   dir   " + file);
			InputStream os = process.getInputStream();
			BufferedReader br = new BufferedReader(new InputStreamReader(os));
			String s = br.readLine();
			while (s != null) {
				if (s.endsWith(file)) {
					System.out.println(s.substring(0, 10));
				}
				s = br.readLine();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
